package com.alibaba.algo.dao.user;

import com.alibaba.algo.core.base.BaseMapper;
import com.alibaba.algo.entity.user.SysLabelOrgEmployee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * SysLabelOrgEmployeeMapper
 *
 * @author Songtinghua
 * @create 2021-10-29 12:49
 **/
public interface SysLabelOrgEmployeeMapper extends BaseMapper<SysLabelOrgEmployee> {

    /**
     * 根据标签查询相关联的组织和员工信息
     *
     * @param sysLabelOrgId SysLabelOrg id
     * @return list
     */
    List<SysLabelOrgEmployee> selectBySysLabelOrgId(@Param("sysLabelOrgId") Long sysLabelOrgId);

    /**
     * 删除对于标签下的信息
     *
     * @param sysLabelId SysLabel id
     * @return int
     */
    int deleteBySysLabelOrgId(@Param("sysLabelId") Long sysLabelId);

    /**
     * 删除对于标签下的信息(软删除--数据置为无效)
     *
     * @param sysLabelOrgId SysLabel id
     * @return int
     */
    int updateBySysLabelOrgId(@Param("sysLabelOrgId") Long sysLabelOrgId);


    int deleteBySysEmployeeId(@Param("employeeId") Long employeeId);
}
